package com.xinbochuang.machine.admin.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinbochuang.machine.common.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;
import java.util.UUID;

/**
 * 机房
 *
 * @author 黄晓鹏
 * @date 2020-09-10 15:57
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("MAC_ROOM")
public class MacRoomVo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 机房id
     */
    @TableId("UUID")
    private String uuid;

    /**
     * 机房名称
     */
    @TableField("MAC_NAME")
    private String name;

    /**
     * 删除标志
     */
    @TableField("DELETE_FLAG")
    private Integer deleteFlag;

    @TableField("DEPT_ID")
    private Integer deptId;

    /**
     * 开始时间
     */
    @TableField(exist = false)
    private String status;

    /**
     * 层级标识
     */
    @TableField(exist = false)
    private String type = "room";

    /**
     * 下属机柜
     */
    @TableField(exist = false)
    private List<EquCabinetVo> children;

    /**
     * planId
     */
    @TableField(exist = false)
    private String planId;

    /**
     * rowId
     */
    @TableField(exist = false)
    private String rowId = UUID.randomUUID().toString();

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME", exist = false)
    private String createTime;

    /**
     * 创建人
     */
    @TableField(value = "CREATE_BY", exist = false)
    private String createBy;

    /**
     * 修改人
     */
    @TableField(value = "UPDATE_BY", exist = false)
    private String updateBy;

    /**
     * 修改时间
     */
    @TableField(value = "UPDATE_Time", exist = false)
    private String updateTime;

    /**
     * 简介
     */
    @TableField(value = "REMARK", exist = false)
    private String remark;

}
